<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/2/26
 * Time: 1:18
 */

namespace app\common\model;


use think\Model;

class RoleAccess extends Model
{
    /**
     * 主键
     * @var string
     */
    protected $pk = 'id';

    /**
     * 表
     * @var string
     */
    protected $table = 'role_access';

    /**
     * 类型自动转换
     * @var array
     */
    protected $type = [
        'role_id'      => 'integer',
        'access_id'    => 'integer',
        'created_time' => 'datetime',
    ];
}